package com.km.team.phsystem.beans.pojo;

import java.io.Serializable;
import java.util.Date;

public class SystemDate implements Serializable {
    private Integer id;

    private Date dayShortDesc;

    private String dayLongDesc;

    private String weekDesc;

    private String weekId;

    private String weekLongDesc;

    private String monthId;

    private String monthLongDesc;

    private String quarterId;

    private String quarterLongDesc;

    private String yearId;

    private String yearLongDesc;

    private String dateType;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDayShortDesc() {
        return dayShortDesc;
    }

    public void setDayShortDesc(Date dayShortDesc) {
        this.dayShortDesc = dayShortDesc;
    }

    public String getDayLongDesc() {
        return dayLongDesc;
    }

    public void setDayLongDesc(String dayLongDesc) {
        this.dayLongDesc = dayLongDesc == null ? null : dayLongDesc.trim();
    }

    public String getWeekDesc() {
        return weekDesc;
    }

    public void setWeekDesc(String weekDesc) {
        this.weekDesc = weekDesc == null ? null : weekDesc.trim();
    }

    public String getWeekId() {
        return weekId;
    }

    public void setWeekId(String weekId) {
        this.weekId = weekId == null ? null : weekId.trim();
    }

    public String getWeekLongDesc() {
        return weekLongDesc;
    }

    public void setWeekLongDesc(String weekLongDesc) {
        this.weekLongDesc = weekLongDesc == null ? null : weekLongDesc.trim();
    }

    public String getMonthId() {
        return monthId;
    }

    public void setMonthId(String monthId) {
        this.monthId = monthId == null ? null : monthId.trim();
    }

    public String getMonthLongDesc() {
        return monthLongDesc;
    }

    public void setMonthLongDesc(String monthLongDesc) {
        this.monthLongDesc = monthLongDesc == null ? null : monthLongDesc.trim();
    }

    public String getQuarterId() {
        return quarterId;
    }

    public void setQuarterId(String quarterId) {
        this.quarterId = quarterId == null ? null : quarterId.trim();
    }

    public String getQuarterLongDesc() {
        return quarterLongDesc;
    }

    public void setQuarterLongDesc(String quarterLongDesc) {
        this.quarterLongDesc = quarterLongDesc == null ? null : quarterLongDesc.trim();
    }

    public String getYearId() {
        return yearId;
    }

    public void setYearId(String yearId) {
        this.yearId = yearId == null ? null : yearId.trim();
    }

    public String getYearLongDesc() {
        return yearLongDesc;
    }

    public void setYearLongDesc(String yearLongDesc) {
        this.yearLongDesc = yearLongDesc == null ? null : yearLongDesc.trim();
    }

    public String getDateType() {
        return dateType;
    }

    public void setDateType(String dateType) {
        this.dateType = dateType == null ? null : dateType.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SystemDate other = (SystemDate) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDayShortDesc() == null ? other.getDayShortDesc() == null : this.getDayShortDesc().equals(other.getDayShortDesc()))
            && (this.getDayLongDesc() == null ? other.getDayLongDesc() == null : this.getDayLongDesc().equals(other.getDayLongDesc()))
            && (this.getWeekDesc() == null ? other.getWeekDesc() == null : this.getWeekDesc().equals(other.getWeekDesc()))
            && (this.getWeekId() == null ? other.getWeekId() == null : this.getWeekId().equals(other.getWeekId()))
            && (this.getWeekLongDesc() == null ? other.getWeekLongDesc() == null : this.getWeekLongDesc().equals(other.getWeekLongDesc()))
            && (this.getMonthId() == null ? other.getMonthId() == null : this.getMonthId().equals(other.getMonthId()))
            && (this.getMonthLongDesc() == null ? other.getMonthLongDesc() == null : this.getMonthLongDesc().equals(other.getMonthLongDesc()))
            && (this.getQuarterId() == null ? other.getQuarterId() == null : this.getQuarterId().equals(other.getQuarterId()))
            && (this.getQuarterLongDesc() == null ? other.getQuarterLongDesc() == null : this.getQuarterLongDesc().equals(other.getQuarterLongDesc()))
            && (this.getYearId() == null ? other.getYearId() == null : this.getYearId().equals(other.getYearId()))
            && (this.getYearLongDesc() == null ? other.getYearLongDesc() == null : this.getYearLongDesc().equals(other.getYearLongDesc()))
            && (this.getDateType() == null ? other.getDateType() == null : this.getDateType().equals(other.getDateType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDayShortDesc() == null) ? 0 : getDayShortDesc().hashCode());
        result = prime * result + ((getDayLongDesc() == null) ? 0 : getDayLongDesc().hashCode());
        result = prime * result + ((getWeekDesc() == null) ? 0 : getWeekDesc().hashCode());
        result = prime * result + ((getWeekId() == null) ? 0 : getWeekId().hashCode());
        result = prime * result + ((getWeekLongDesc() == null) ? 0 : getWeekLongDesc().hashCode());
        result = prime * result + ((getMonthId() == null) ? 0 : getMonthId().hashCode());
        result = prime * result + ((getMonthLongDesc() == null) ? 0 : getMonthLongDesc().hashCode());
        result = prime * result + ((getQuarterId() == null) ? 0 : getQuarterId().hashCode());
        result = prime * result + ((getQuarterLongDesc() == null) ? 0 : getQuarterLongDesc().hashCode());
        result = prime * result + ((getYearId() == null) ? 0 : getYearId().hashCode());
        result = prime * result + ((getYearLongDesc() == null) ? 0 : getYearLongDesc().hashCode());
        result = prime * result + ((getDateType() == null) ? 0 : getDateType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", dayShortDesc=").append(dayShortDesc);
        sb.append(", dayLongDesc=").append(dayLongDesc);
        sb.append(", weekDesc=").append(weekDesc);
        sb.append(", weekId=").append(weekId);
        sb.append(", weekLongDesc=").append(weekLongDesc);
        sb.append(", monthId=").append(monthId);
        sb.append(", monthLongDesc=").append(monthLongDesc);
        sb.append(", quarterId=").append(quarterId);
        sb.append(", quarterLongDesc=").append(quarterLongDesc);
        sb.append(", yearId=").append(yearId);
        sb.append(", yearLongDesc=").append(yearLongDesc);
        sb.append(", dateType=").append(dateType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}